#pragma once
#include "vn/NullStream.h"

void NullStreamTest() {_test_func_;
	{
		NullStream a;
		Buf8 mem[100];

		Buf8 *ptr = mem;
		Buf8 *constptr = mem;

		assert( a.Read(ptr, 100) == 0);
		a.Write(constptr, 100);
		assert( a.Seek(0, SeekBegin) == 0 );
		a.Flush();
		a.Close();

		assert( a.CanRead() == true );
		assert( a.CanWrite() == true );
		assert( a.CanSeek() == true );

		assert( a.GetPosition() == 0 );
		a.SetPosition(100);
		assert( a.GetLength() == 0 );
		a.SetLength(100);
	}
}
